.order-detail-page {
  background: #f5f5f5;
  min-height: 100vh;

  .order-detail-header {
      background: white;
      padding: 12px 16px;
      border-bottom: 1px solid #e5e5e5;
      position: sticky;
      top: 0;
      z-index: 100;
      box-shadow: 0 1px 3px rgba(0,0,0,0.1);

      .header-left {
          display: flex;
          align-items: center;
          gap: 12px;

          .back-btn {
              background: #4caf50;
              border: none;
              border-radius: 50%;
              width: 32px;
              height: 32px;
              display: flex;
              align-items: center;
              justify-content: center;
              color: white;
              font-size: 16px;
              cursor: pointer;
              transition: all 0.3s ease;
              box-shadow: 0 2px 4px rgba(76, 175, 80, 0.3);

              &:hover {
                  background: #45a049;
                  transform: scale(1.05);
              }
          }

          .header-title {
              font-size: 18px;
              font-weight: 600;
              color: #333;
          }
      }
  }

  .order-detail-content {
      padding: 16px;
      max-width: 600px;
      margin: 0 auto;

      .loading-container {
          display: flex;
          flex-direction: column;
          align-items: center;
          justify-content: center;
          padding: 60px 20px;
          background: white;
          border-radius: 12px;
          box-shadow: 0 2px 8px rgba(0,0,0,0.1);

          .loading-spinner {
              width: 32px;
              height: 32px;
              border: 3px solid #f3f3f3;
              border-top: 3px solid #4caf50;
              border-radius: 50%;
              animation: spin 1s linear infinite;
              margin-bottom: 16px;
          }

          span {
              color: #666;
              font-size: 14px;
          }
      }

            .order-status-card {
              border-radius: 12px;
              padding: 20px;
              margin-bottom: 16px;
              color: white;
              display: flex;
              align-items: center;
              gap: 16px;
              box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  
              &.status-pending {
                  background: linear-gradient(135deg, #ff9800 0%, #ffc107 100%);
              }
  
              &.status-paid {
                  background: linear-gradient(135deg, #4caf50 0%, #8bc34a 100%);
              }
  
              &.status-refunding {
                  background: linear-gradient(135deg, #2196f3 0%, #03a9f4 100%);
              }
  
              &.status-refunded {
                  background: linear-gradient(135deg, #9e9e9e 0%, #bdbdbd 100%);
              }
  
              .status-icon {
                  width: 48px;
                  height: 48px;
                  background: rgba(255,255,255,0.2);
                  border-radius: 50%;
                  display: flex;
                  align-items: center;
                  justify-content: center;
                  font-size: 24px;
                  font-weight: bold;
              }
  
              .status-info {
                  flex: 1;
  
                  .status-text {
                      font-size: 18px;
                      font-weight: 600;
                      margin-bottom: 4px;
                  }
  
                  .status-desc {
                      font-size: 14px;
                      opacity: 0.9;
                  }
              }
          }

      .order-info-section {
          background: white;
          border-radius: 12px;
          margin-bottom: 16px;
          box-shadow: 0 2px 8px rgba(0,0,0,0.1);
          overflow: hidden;

          .section-title {
              background: #f8f9fa;
              padding: 12px 16px;
              font-size: 16px;
              font-weight: 600;
              color: #333;
              border-bottom: 1px solid #e5e5e5;
          }

          .info-grid {
              padding: 16px;

              .info-item {
                  display: flex;
                  justify-content: space-between;
                  align-items: center;
                  padding: 12px 0;
                  border-bottom: 1px solid #f5f5f5;

                  &:last-child {
                      border-bottom: none;
                  }

                  .info-label {
                      font-size: 14px;
                      color: #666;
                      font-weight: 500;
                  }

                  .info-value {
                      font-size: 14px;
                      color: #333;
                      font-weight: 500;

                      &.amount {
                          font-size: 18px;
                          font-weight: 700;
                          color: #4caf50;
                      }
                  }
              }
          }
      }

      .order-items-section {
          background: white;
          border-radius: 12px;
          margin-bottom: 16px;
          box-shadow: 0 2px 8px rgba(0,0,0,0.1);
          overflow: hidden;

          .section-title {
              background: #f8f9fa;
              padding: 12px 16px;
              font-size: 16px;
              font-weight: 600;
              color: #333;
              border-bottom: 1px solid #e5e5e5;
              display: flex;
              justify-content: space-between;
              align-items: center;

              .item-count {
                  font-size: 12px;
                  color: #666;
                  background: #e9ecef;
                  padding: 4px 8px;
                  border-radius: 12px;
              }
          }

          .items-container {
              padding: 16px;

              .order-item {
                  display: flex;
                  align-items: center;
                  gap: 12px;
                  padding: 12px 0;
                  border-bottom: 1px solid #f5f5f5;

                  &:last-child {
                      border-bottom: none;
                  }

                  .item-image {
                      width: 60px;
                      height: 60px;
                      border-radius: 8px;
                      overflow: hidden;
                      flex-shrink: 0;
                      box-shadow: 0 2px 4px rgba(0,0,0,0.1);

                      img {
                          width: 100%;
                          height: 100%;
                          object-fit: cover;
                      }
                  }

                  .item-details {
                      flex: 1;
                      min-width: 0;

                      .item-name {
                          font-size: 14px;
                          font-weight: 500;
                          color: #333;
                          margin-bottom: 4px;
                          line-height: 1.4;
                          display: -webkit-box;
                          -webkit-line-clamp: 2;
                          -webkit-box-orient: vertical;
                          overflow: hidden;
                      }

                      .item-spec {
                          font-size: 12px;
                          color: #666;
                          margin-bottom: 4px;
                      }

                      .item-price-quantity {
                          display: flex;
                          align-items: center;
                          gap: 8px;

                          .item-price {
                              font-size: 14px;
                              color: #4caf50;
                              font-weight: 600;
                          }

                          .item-quantity {
                              font-size: 12px;
                              color: #666;
                          }
                      }
                  }

                  .item-subtotal {
                      font-size: 16px;
                      font-weight: 700;
                      color: #333;
                      text-align: right;
                      min-width: 60px;
                  }
              }
          }
      }

      .order-summary {
          background: white;
          border-radius: 12px;
          padding: 16px;
          box-shadow: 0 2px 8px rgba(0,0,0,0.1);

          .summary-row {
              display: flex;
              justify-content: space-between;
              align-items: center;
              padding: 8px 0;

              .summary-label {
                  font-size: 14px;
                  color: #666;
              }

              .summary-value {
                  font-size: 14px;
                  color: #333;
                  font-weight: 500;
              }

              &.total {
                  border-top: 1px solid #e5e5e5;
                  margin-top: 8px;
                  padding-top: 12px;

                  .summary-label {
                      font-size: 16px;
                      font-weight: 600;
                      color: #333;
                  }

                  .summary-value {
                      font-size: 18px;
                      font-weight: 700;
                      color: #4caf50;
                  }
              }
          }
      }
  }
}

.nut-empty {
  background: white;
  border-radius: 12px;
  padding: 60px 20px;
  margin: 16px 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  
  .nut-empty__description {
      color: #666;
      font-size: 14px;
      margin-top: 16px;
  }
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
